package cn.yotta.user.server.controller;

import cn.yotta.common.api.exception.ServiceException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wyaoyao
 * @date 2023/3/18 21:18
 */
@RestController
public class DemoController {

    @GetMapping("demo/error")
    public String test() {
        throw new ServiceException("example.error");
    }
}
